﻿using PlateNumVideo.Entity;
using System;

namespace PlateNumVideo.Interface
{
    /// <summary>
    /// 车号识别接口
    /// </summary>
    public interface IPlateNumVideo
    {
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="initPlateParam">初始化参数</param>
        void Init(InitPlateParam initPlateParam);

        /// <summary>
        /// 打开设备
        /// </summary>
        /// <param name="openParam">设备参数</param>
        /// <returns></returns>
        Tuple<bool, string> Open();

        /// <summary>
        /// 开始播放
        /// </summary>
        /// <returns></returns>
        Tuple<bool, string> StartRealPlay();

        /// <summary>
        /// 停止播放
        /// </summary>
        /// <returns></returns>
        Tuple<bool, string> StopRealPlay();

        /// <summary>
        /// 抓拍图片
        /// </summary>
        /// <returns></returns>
        Tuple<bool,string, string> SnapImage();

        /// <summary>
        /// 关闭
        /// </summary>
        /// <returns></returns>
        Tuple<bool, string> Close();


        /// <summary>
        /// 获取车号
        /// </summary>
        /// <returns></returns>
        PlateNumRes GetPlateNum();

    }
}
